//
//  ViewController.swift
//  SwiftGenericDemo
//
//  Created by aron on 2017/6/2.
//  Copyright © 2017年 aron. All rights reserved.
//

import UIKit

class ViewController: UIViewController {

    override func viewDidLoad() {
        super.viewDidLoad()

        // 泛型方法测试
        var a = 10;
        var b = 20;
        GenericFunctionTest.change(a: &a, b: &b)
        print("a=\(a) b=\(b)")
        
        // 泛型类测试
        let arr = ArrayImpl<Int>()
        arr.add(item: 100)
        arr.add(item: 200)
        arr.add(item: 300)
        arr.forEach()
        
        
        
    }

    override func didReceiveMemoryWarning() {
        super.didReceiveMemoryWarning()
        // Dispose of any resources that can be recreated.
    }


}

